﻿
using System.Collections.Generic;
using good1.Core;

namespace good1.ApplicationServices.Dto
{
    //TODO move this to Web.Model cos this is what it is, was creatd before that model.
    //http://groups.google.com/group/sharp-architecture/browse_thread/thread/f577665a617c52dc/9f78012654ab0e8a?lnk=gst&q=findone#9f78012654ab0e8a
    public class ProjectDto
    {
        public ProjectDto(Project project)
        {
            Project = project;
            if(Charities==null) Charities = new List<Charity>();
            if (Locations == null) Locations = new List<Location>();
        }

        public ProjectDto()
        {
            if (Charities == null) Charities = new List<Charity>();
            if (Locations == null) Locations = new List<Location>();
            if (Project == null) Project = new Project();
        }

        public Project Project { get; set; }
        public IList<Charity> Charities { get; set; }
        public IList<Location> Locations { get; set; }
    }
}
